package intention;

//From Swing Application Library
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;


public class IntentionApp extends SingleFrameApplication {

    //Main Execution - Launch SingleFrameApplication
    public static void main(String[] args) {
        launch(IntentionApp.class, args);
    }

    //returns application instance for static launch
    public static IntentionApp getApplication() {
        return Application.getInstance(IntentionApp.class);
    }

    //implements SingleFrameApp's startup method.
    //From JavaDoc: To use SingleFrameApplication, one need only override startup, create the GUI's main panel, and apply show to that.
    @Override protected void startup() {
        IntentionView app = new IntentionView(this);
        IntentionLogic logic = new IntentionLogic(app);
        show(app);
    }

}
